package com.dubbo.provider;

import com.dubbo.api.UserService;
import com.dubbo.provider.serviceimpl.UserServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;


//批量扫描所有的Mapper接口
@MapperScan(value = "com.dubbo.provider.mapper")
@SpringBootApplication
public class DubboProviderBootstrap {

    public static void main(String[] args) {
        new SpringApplicationBuilder(DubboProviderBootstrap.class)
                .run(args);
        //System.out.println(new UserServiceImpl().findUsers());
    }

}